Set value in object by path and flatten again with objects and arrays

join shbcf.ru